﻿namespace A14_EX01_3
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using A14_EX01_2;

    public class Program
    {
        public static void Main()
        {
            PrintRhombusBySize();
        }

        public static void PrintRhombusBySize()
        {
            uint i_sizeOfRhombus;
            System.Console.WriteLine("Please enter the number of lines for the shape:");
            string inputFromUser = System.Console.ReadLine();

            if (uint.TryParse(inputFromUser, out i_sizeOfRhombus))
            {
                i_sizeOfRhombus = i_sizeOfRhombus % 2 == 0 ? --i_sizeOfRhombus : i_sizeOfRhombus;
                A14_EX01_2.Program.PrintRhombus(i_sizeOfRhombus);
            }
            else
            {
                System.Console.WriteLine("Wrong value entered. Goodbye!");
            }
        }
    }
}
